package com.example.springboot01.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description : 类描述
 * Created by cyd on 2021-03-22 22:34:36
 */
@Data
//@ConfigurationProperties(prefix = "person2")
@Component
public class Person2 {
    @Value("${person2.name}")
    private String name;
    @Value("#{3*2}")
    private Integer age;
    @Value("true")
    private Boolean boss;
    private Date birthday;

    private Map<String, Object> map;
    private List<Object> list;
    private Dog dog;
}
